// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** 此处后端没有提供注释 POST /apibackend/userInterfaceInfo/add */
export async function addUserInterfaceInfo(
  body: API.UserInterfaceInfoAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong>('/apibackend/userInterfaceInfo/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 POST /apibackend/userInterfaceInfo/getFreeNum */
export async function getFreeInterfaceCount(
  body: API.UpdateUserInterfaceInfoDTO,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean>('/apibackend/userInterfaceInfo/getFreeNum', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 GET /apibackend/userInterfaceInfo/list/userId */
export async function getInterfaceInfoByUserId(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getInterfaceInfoByUserIdParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseListUserInterfaceInfoVO>(
    '/apibackend/userInterfaceInfo/list/userId',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}
